package sample.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import sample.model.Person;

/**
 * Created on 2020/7/1
 */
@Mapper
public interface PersonMapper {

	@Select("select * from person")
	List<Person> findAll();

	@Insert("insert into person (person_id) values (#{personId})")
	int insert(@Param("personId") Integer personId);

	@Insert("insert into person (person_id) values (#{personId})")
	int insert2(Person person);
}
